/// <summary>
// CodeFx.MySqlProviders - .NET Providers for MySql using the framework CodeFx
// Laurent Morisseau
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
//
// Laurent Morisseau
/// </summary>
/// <author><a href="mailto:laurent.morisseau@gmail.com">Laurent Morisseau</a></author>

namespace CodeFx.MySqlProviders
{
	using System;
	using System.Collections.Generic;
	using System.Text;
	using CodeFx.Web;
	using System.Collections;
	
	/// Classe de persistance pour les collections
	[Persistance("Aspnet_profiles"	, EPersistanceMode.Cache, EPersistanceLevel.Public)]
    public partial class PersistanceAspnet_profiles : Persistance<List<Aspnet_profileDAL>>
    {
        public new static PersistanceAspnet_profiles Current = new PersistanceAspnet_profiles();
		public override sealed void SetObject(List<Aspnet_profileDAL> ObjectToPersist)
        {
            base.SetObject(ObjectToPersist, "Aspnet_profiles");
        }
    }

	/// Classe de persistance pour la DAL
    [Persistance("Aspnet_profile", EPersistanceMode.Cache, EPersistanceLevel.Public)]
    public partial class PersistanceAspnet_profile : Persistance< Aspnet_profileDAL>
    {
        public new static PersistanceAspnet_profile Current = new PersistanceAspnet_profile();
        
		public override sealed string GetKey(Aspnet_profileDAL ObjectValue)
        {
            if (ObjectValue != null)
                return ObjectValue.Key;
            else
                return string.Empty ;
        }
		public override sealed Aspnet_profileDAL GetSelect(string Key)
        {
            return Aspnet_profileDTO.Select(Convert.ToUInt32(Key));
        }
    }
}